/*
 * Range.h
 *
 *  Created on: Apr 20, 2011
 *      Author: varunjn
 */

#ifndef RANGE_H_
#define RANGE_H_

class Range{

public:
	double min;
	double max;

	Range(){
		min = 0.0;
		max = 0.0;
	}

	Range(double pMin, double pMax){
		min = pMin;
		max = pMax;
	}

	bool has(double x){
		if(x >= min && x <= max){
			return true;
		} else {
			return false;
		}
	}

};


#endif /* RANGE_H_ */
